fix(mcp): do not pass all headers to upstream#2345
Conversation
WalkthroughThe PR adds filtering logic to prevent specific hop-by-hop and filtered headers (e.g., Proxy-Authenticate, Proxy-Authorization, Alt-Svc, Proxy-Connection) from being forwarded to downstream GraphQL servers during request execution, along with test coverage verifying the filtering behavior. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (9)📓 Common learnings📚 Learning: 2025-09-17T20:55:39.456ZApplied to files:
📚 Learning: 2025-08-28T09:18:10.121ZApplied to files:
📚 Learning: 2025-08-20T22:13:25.222ZApplied to files:
📚 Learning: 2025-10-01T20:39:16.113ZApplied to files:
📚 Learning: 2025-08-20T10:08:17.857ZApplied to files:
📚 Learning: 2025-09-01T13:44:13.045ZApplied to files:
📚 Learning: 2025-08-20T10:08:17.857ZApplied to files:
📚 Learning: 2025-09-01T13:44:13.045ZApplied to files:
🧬 Code graph analysis (1)router-tests/mcp_test.go (3)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (12)
🔇 Additional comments (3)
Comment |
Router image scan passed✅ No security vulnerabilities found in image: |
Summary by CodeRabbit
Checklist